package com.example.commonapi.pojo;

import java.io.Serializable;
import java.util.List;

public class Comment implements Serializable {
    private int id;
    private int topicId;
    private int userId;
    private String content;
    private String time;
    private List<Reply> replyList;

    public Comment() {
    }

    public Comment(int topicId, int userId, String content) {
        this.topicId = topicId;
        this.userId = userId;
        this.content = content;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", topicId=" + topicId +
                ", userId=" + userId +
                ", replyList=" + replyList +
                ", content='" + content + '\'' +
                ", time='" + time + '\'' +
                '}';
    }

    public List<Reply> getReplyList() {
        return replyList;
    }

    public void setReplyList(List<Reply> replyList) {
        this.replyList = replyList;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }


    public int getTopicId() {
        return topicId;
    }

    public void setTopicId(int topicId) {
        this.topicId = topicId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
